/*
 ============================================================================
 Name		: NiContainer.h
 Author	  : nmj
 Version	 : 1.0
 Copyright   : Copyright ? 2010 - 2010 NMJ. All Rights Reserved.
 Description : CNiContainer declaration
 ============================================================================
 */

#ifndef NICONTAINER_H
#define NICONTAINER_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>


// CLASS DECLARATION
class CEikLabel;
/**
 *  CNiContainer
 * 
 */
class CNiContainer : public CCoeControl
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CNiContainer();

	/**
	 * Two-phased constructor.
	 */
	static CNiContainer* NewL(const TRect& aRect,CCoeControl* aParent);

	/**
	 * Two-phased constructor.
	 */
	static CNiContainer* NewLC(const TRect& aRect,CCoeControl* aParent);
	
	void SizeChanged();
	
	TInt CountComponentControls() const;
	
	CCoeControl* ComponentControl(TInt aIndex) const;
	
	void SetTextL(const TDesC& aText); 


private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CNiContainer();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL(const TRect& aRect,CCoeControl* aParent);
	
private:
	
	CEikLabel* iLabel;

	};

#endif // NICONTAINER_H
